from flask_script import Manager
from flask_migrate import MigrateCommand, Migrate
from info333 import create_app, db
from info333 import models

app = create_app('development')

manager = Manager(app)

manager.add_command('db', MigrateCommand)

Migrate(app, db)

if __name__ == '__main__':
    print(app.url_map)
    manager.run()
